package com.kk.xhr.admin.controller.vo;

import com.kk.xhr.common.pojo.BinaryEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 部门树形vo
 *
 * @author luokexiong
 * @version 1.0 2021/2/18
 * @since 1.0.0
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DepartmentTreeVO {
    @ApiModelProperty(value = "id", example = "1")
    private Long id;
    @ApiModelProperty(value = "部门负责人", example = "1")
    private String leader;
    @ApiModelProperty(value = "部门负责人", example = "1")
    private Long leaderId;
    @ApiModelProperty(value = "部门名称", example = "开发部")
    private String name;
    @ApiModelProperty(value = "父部门名称", example = "1")
    private Long parentId;
    @ApiModelProperty(value = "部门路径", example = "20楼")
    private String path;
    @ApiModelProperty(value = "是否为父部门", example = "false")
    private Boolean parent;
    @ApiModelProperty(value = "状态", example = "TRUE")
    private BinaryEnum status;
    @ApiModelProperty(value = "子部门")
    private List<DepartmentTreeVO> children;
}
